#ifndef MOCKTIMERSERVICE_H
#define MOCKTIMERSERVICE_H

#include "ITimerService.h"

class MockTimerService : public ITimerService
{
public:
   explicit MockTimerService();

public:
   void  triggerTimeout(int millisec, const TimeoutListener *listener);
   void  stopTimer();

   /* test interface */
public:
   void simulateTimeout();

   int getLastRequestedTime()
   {
      return m_lastRequestedTime;
   }

private:
   int m_lastRequestedTime;
   const TimeoutListener  *m_lastRegistredlistener;
};

#endif // MOCKTIMERSERVICE_H
